import java.util.Random;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        for (int i = 0; i<n; i++) {
            for(int j=0;j<n;j++) {
                if(i==j||i+j==n-1){
                    System.out.print("*");
                }
                else {
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }
    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        Random rand = new Random();
        int x = rand.nextInt(101);
        System.out.println("请输入一个数：");
        while (true) {
            int y = sc.nextInt();
            if (y>x) {
                System.out.println("猜大了！");
            }
            else if (y==x) {
                System.out.println("恭喜你猜中了！");
                break;
            }
            else  {
                System.out.println("猜小了！");
            }

        }
    }
}